home *** CD-ROM | disk | FTP | other *** search
- (procedure check-one-file-one-version
- (set fpath (tackon @default-dest fname))
- (if (exists fpath) (
- (set amiwin-version (getversion fpath))
- (if (not(= amiwin-version fversion))
- (abort (cat "Your file " fname " does not have the correct version\n"));
- )
- ))
- )
-
- (procedure check-one-file-two-versions
- (set fpath (tackon @default-dest fname))
- (if (exists fpath) (
- (set amiwin-version (getversion fpath))
- (if (not(= amiwin-version fversion))
- (if (not(= amiwin-version fversion2))
- (abort (cat "Your file " fname " does not have the correct version\n"));
- )
- )
- ))
- )
-
- (procedure check-one-file-three-versions
- (set fpath (tackon @default-dest fname))
- (if (exists fpath) (
- (set amiwin-version (getversion fpath))
- (if (not(= amiwin-version fversion))
- (if (not(= amiwin-version fversion2))
- (if (not(= amiwin-version fversion3))
- (abort (cat "Your file " fname " does not have the correct version\n"));
- )
- )
- )
- ))
- )
-
- (procedure check-one-file-size
- (set fpath (tackon @default-dest fname))
- (if (exists fpath) (
- (if (not (= (getsize fpath) fsize))
- (abort (cat "Your file " fname " does not have the correct version\n"));
- )
- ))
- )
-
- (procedure check-amiwin-version
- (set amiwin-version (getversion (tackon @default-dest "bin/AmiWin")))
- (if (not(= amiwin-version 131084))
- (if (not(= amiwin-version 131086))
- (if (not(= amiwin-version 131088))
- (abort "You do not have AmiWin 2.12r, 2.14r or 2.16r installed.\n")
- )
- )
- )
- (complete 1)
- (working)
- (set n 0)
- (while (set fname (select n
- "xse/multibuf.xse" "xse/sync.xse" "xle/mitmisc.xle" "xle/multibuf.xle"
- "xle/shape.xle" "xle/sync.xle" "xtp/amitcp.xtp" "xtp/as225.xtp"
- "libs/xau.library" "libs/xice.library" "libs/xmu1.library"
- "libs/xsm.library" "libs/xtrans.library" "bin/appres" "bin/atobm"
- "bin/bdftopcf" "bin/Bitmap" "bin/bmtoa" "bin/dclock" "bin/ico"
- "bin/maze" "bin/oclock" "bin/x11perf" "bin/xauth" "bin/xbench"
- "bin/xclock" "bin/xdpyinfo" "bin/xeyes" "bin/xfd"
- "bin/xhost" "bin/xkill" "bin/xload" "bin/xlogo" "bin/xlsatoms"
- "bin/xlsclients" "bin/xlsfonts" "bin/xmodmap" "bin/xpmroot"
- "bin/xprop" "bin/xrefresh" "bin/xrubik" "bin/xset" "bin/xsetroot"
- "bin/xwd" "bin/xwininfo" "bin/xwud" "")) (
- (set fversion (select n
- 131084 131084 131072 131072 131072 131072 131072 131072
- 131072 131083 131083 131072 131083 131084 131084 131084
- 131084 131084 131084 131084 131084 131072 131084 131072
- 131084 131072 131084 131084 131084 131084 131084
- 131084 131084 131084 131072 131084 131084 131084 131084
- 131084 131084 131084 131084 131084 131084 131084 ))
- (check-one-file-one-version)
- (set n (+ n 1))
- ))
- (complete 2)
- (working)
- (set n 0)
- (while (set fname (select n
- "xsd/aga-1.xsd" "xsd/aga-8.xsd" "xsd/rtg-1.xsd" "libs/xaw.library"
- "libs/xaw3d.library" "libs/xlib.library" "libs/xmu2.library"
- "libs/xpm.library" "bin/mkfontdir" "bin/twm"
- "bin/xcalc" "bin/xdaliclock" "")) (
- (set fversion (select n
- 131084 131084 131084 131083 131084 131083 131083 131084
- 131072 131072 131083 131084 ))
- (set fversion2 (select n
- 131086 131086 131086 131088 131088 131086 131086 131088
- 131088 131086 131088 131088 ))
- (check-one-file-two-versions)
- (set n (+ n 1))
- ))
- (complete 3)
- (working)
- (set n 0)
- (while (set fname (select n
- "libs/xfont.library" "libs/xt.library" "")) (
- (set fversion (select n
- 131084 131083))
- (set fversion2 (select n
- 131086 131086))
- (set fversion3 (select n
- 131088 131088))
- (check-one-file-three-versions)
- (set n (+ n 1))
- ))
- (complete 4)
- (working)
- (set n 0)
- (while (set fname (select n
- "lib/x11/fvwm/FvwmAudio" "lib/x11/fvwm/FvwmAuto" "lib/x11/fvwm/FvwmBack"
- "lib/x11/fvwm/FvwmBanner" "lib/x11/fvwm/FvwmClean" "lib/x11/fvwm/FvwmDebug"
- "lib/x11/fvwm/FvwmIconBox" "lib/x11/fvwm/FvwmIdent" "lib/x11/fvwm/FvwmPager"
- "lib/x11/fvwm/FvwmScroll" "lib/x11/fvwm/FvwmWinList" "lib/x11/fvwm/GoodStuff"
- "")) (
- (set fsize (select n
- 16324 11760 16084 85864 18384 15132 40576 21464 37424 27084
- 24048 30044 ))
- (check-one-file-size)
- (set n (+ n 1))
- ))
- )
-
- (procedure select-destination-directory
- (set @default-dest
- (askdir
- (prompt "Select the directory where you have "
- "installed AmiWin 2.12 reg, 2.14 reg or 2.16 reg. The default is "
- "probably correct.")
- (help "Please specify the directory where you have "
- "installed AmiWin 2.12 reg, 2.14 reg or 2.16 reg. The default is "
- "the X11: directory, i.e. the likely place of "
- "your AmiWin installation.")
- (default "X11:")
- )
- )
- )
-
- (procedure patchonefile
- (copyfiles
- (source (tackon srcdir srcfile))
- (dest "T:")
- (newname "oldfile")
- )
-
- (working)
- (run (cat "\"" (tackon source-dir "bin/spatch") "\" -oT:newfile \"-p" pchfile "\" T:oldfile"))
-
- (copyfiles
- (source "T:newfile")
- (dest srcdir)
- (newname srcfile)
- )
-
- (delete "T:oldfile")
- (delete "T:newfile")
- (working)
- )
-
- (procedure delete-old-files
- (working)
- (set n 0)
- (while (set fname (select n
- "xsd/aga-1.xsd.000" "xsd/aga-1.xsd.030" "xsd/aga-8.xsd.000"
- "xsd/aga-8.xsd.030" "xsd/cybergraphx-15.xsd.000"
- "xsd/cybergraphx-15.xsd.030" "xsd/cybergraphx-8.xsd.000"
- "xsd/cybergraphx-8.xsd.030" "xsd/hrg-15.xsd.000" "xsd/hrg-15.xsd.030"
- "xsd/hrg-8.xsd.000" "xsd/hrg-8.xsd.030" "xsd/picasso-l-15.xsd.000"
- "xsd/picasso-l-15.xsd.030" "xsd/picasso-l-8.xsd.000"
- "xsd/picasso-l-8.xsd.030" "xsd/rtg-1.xsd.000" "xsd/rtg-1.xsd.030"
- "xsd/cybergraphx-8.xsd" "xsd/cybergraphx-15.xsd"
- "xsd/hrg-8.xsd" "xsd/hrg-15.xsd" "xsd/picasso-l-15.xsd"
- "xsd/picasso-l-8.xsd" "bin/AmiWin" "bin/AmiWin.000" "bin/AmiWin.030"
- "bin/editres" "bin/fvwm" "bin/xclipboard" "bin/xcutsel"
- "bin/xearth" "bin/xearth.000" "bin/xearth.030" "bin/xmag"
- "bin/xstdcmap" "man/xclock.man" "man/xdpyinfo.man" "man/oclock.man"
- "man/twm.man" "man/xauth.man" "man/xhost.man" "man/mkfontdir.man"
- "man/xcalc.man" "man/xwininfo.man" "man/xkill.man" "man/xsetroot.man"
- "man/xset.man" "man/xlsclients.man" "man/bdftopcf.man" "man/appres.man"
- "man/bitmap.man" "man/x11perf.man" "man/xfd.man" "man/xlogo.man"
- "man/xlsatoms.man" "man/xlsfonts.man" "man/xmodmap.man" "man/xprop.man"
- "man/xrefresh.man" "man/xwd.man" "man/xwud.man" "man/dclock.man"
- "man/fvwm.man" "man/GoodStuff.man" "man/FvwmBanner.man" "man/FvwmDebug.man"
- "man/FvwmClean.man" "man/FvwmIdent.man" "man/FvwmPager.man" "man/FvwmWinList.man"
- "man/FvwmScroll.man" "man/FvwmBacker.man" "man/FvwmAudio.man" "man/FvwmIconBox.man"
- "man/FvwmAuto.man" "man/xpmroot.man" "man/ico.man" "man/maze.man" "man/xdaliclock.man"
- "man/xeyes.man" "man/xload.man" "man/xrubik.man" "Help/AmiWin.guide"
- "Help/AmiWin.dvi" "Help/AmiWin.ps" "bin/awdecrypt" "")) (
- (if (exists (tackon @default-dest fname))
- (delete (tackon @default-dest fname))
- )
- (set n (+ n 1))
- ))
- )
-
- (procedure patch-to-214
- (working)
- (set n 0)
- (while (set srcfile (select n
- "xfont.library" "xlib.library" "xmu2.library"
- "xt.library" "twm" "")) (
- (set reldir (select n
- "libs" "libs" "libs" "libs" "bin"))
- (set srcdir (tackon @default-dest reldir))
- (set fversion (select n
- 131084 131083 131083 131083 131072))
- (set fpath (tackon srcdir srcfile))
- (if (exists fpath) (
- (if (= fversion (getversion fpath)) (
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "xfont.14pch" "xlib.14pch" "xmu2.14pch" "xt.14pch" "twm.14pch")
- ))
- (patchonefile)
- ))
- ))
- (set n (+ n 1))
- ))
-
- (complete 25)
- (working)
- (set n 0)
- (while (set srcfile (select n
- "aga-1.xsd" "aga-8.xsd" "rtg-1.xsd" "")) (
- (set reldir "xsd")
- (set srcdir (tackon @default-dest reldir))
- (set fversion 131084)
- (set fpath (tackon srcdir srcfile))
- (if (exists fpath) (
- (if (= fversion (getversion fpath)) (
- (if (= (getsize fpath) (select n 86456 179460 120556))
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "aga-1-000.14pch" "aga-8-000.14pch" "rtg-1-000.14pch" )
- ))
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "aga-1-030.14pch" "aga-8-030.14pch" "rtg-1-030.14pch" )
- ))
- )
- (patchonefile)
- ))
- ))
- (set n (+ n 1))
- ))
- )
-
- (procedure patch-to-216
- (working)
- (set n 0)
- (while (set srcfile (select n
- "xaw.library" "xaw3d.library" "xfont.library"
- "xpm.library" "xt.library" "mkfontdir"
- "xcalc" "xdaliclock" "")) (
- (set reldir (select n
- "libs" "libs" "libs" "libs" "libs" "bin" "bin" "bin"))
- (set srcdir (tackon @default-dest reldir))
- (set fversion (select n
- 131083 131084 131086 131084 131086 131072 131083 131084))
- (set fpath (tackon srcdir srcfile))
- (if (exists fpath) (
- (if (= fversion (getversion fpath)) (
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "xaw.16pch" "xaw3d.16pch" "xfont.16pch" "xpm.16pch" "xt.16pch"
- "mkfontdir.16pch" "xcalc.16pch" "xdaliclock.16pch" )
- ))
- (patchonefile)
- ))
- ))
- (set n (+ n 1))
- ))
- )
-
- (procedure patch-to-222
- (working)
- (set n 0)
- (while (set srcfile (select n
- "multibuf.xse" "sync.xse" "mitmisc.xle" "multibuf.xle" "shape.xle"
- "sync.xle" "FvwmAudio" "FvwmAuto"
- "FvwmBacker" "FvwmBanner" "FvwmClean" "FvwmDebug" "FvwmIconBox"
- "FvwmIdent" "FvwmPager" "FvwmScroll" "FvwmWinList" "GoodStuff"
- "amitcp.xtp" "as225.xtp" "xau.library" "xaw.library"
- "xaw3d.library" "xfont.library" "xice.library" "xlib.library"
- "xmu1.library" "xmu2.library" "xpm.library" "xt.library"
- "xtrans.library" "xhost" "xkill" "xload" "xlogo" "xlsatoms"
- "xlsclients" "xlsfonts" "xmodmap" "xpmroot" "xprop" "xrefresh"
- "xrubik" "xset" "xsetroot" "xwd" "xwininfo" "xwud" "appres"
- "atobm" "bdftopcf" "bitmap" "bmtoa" "dclock" "ico" "maze"
- "mkfontdir" "oclock" "twm" "x11perf" "xauth" "xbench" "xcalc"
- "xclock" "xdaliclock" "xdpyinfo" "xeyes" "xfd" "")) (
- (set reldir (select n
- "xse" "xse" "xle" "xle" "xle" "xle" "lib/x11/fvwm"
- "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm"
- "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm"
- "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" "xtp" "xtp"
- "libs" "libs" "libs" "libs" "libs" "libs" "libs" "libs"
- "libs" "libs" "libs" "bin" "bin" "bin" "bin" "bin" "bin" "bin"
- "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin"
- "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin"
- "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" ))
- (set srcdir (tackon @default-dest reldir))
- (set fpath (tackon srcdir srcfile))
- (if (exists fpath) (
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "multibuf.pch" "sync.pch" "mitmisc.pch" "multibuf.pch" "shape.pch"
- "sync.pch" "FvwmAudio.pch" "FvwmAuto.pch"
- "FvwmBacker.pch" "FvwmBanner.pch" "FvwmClean.pch" "FvwmDebug.pch" "FvwmIconBox.pch"
- "FvwmIdent.pch" "FvwmPager.pch" "FvwmScroll.pch" "FvwmWinList.pch" "GoodStuff.pch"
- "amitcp.pch" "as225.pch" "xau.pch" "xaw.pch"
- "xaw3d.pch" "xfont.pch" "xice.pch" "xlib.pch"
- "xmu1.pch" "xmu2.pch" "xpm.pch" "xt.pch"
- "xtrans.pch" "xhost.pch" "xkill.pch" "xload.pch" "xlogo.pch" "xlsatoms.pch"
- "xlsclients.pch" "xlsfonts.pch" "xmodmap.pch" "xpmroot.pch" "xprop.pch" "xrefresh.pch"
- "xrubik.pch" "xset.pch" "xsetroot.pch" "xwd.pch" "xwininfo.pch" "xwud.pch" "appres.pch"
- "atobm.pch" "bdftopcf.pch" "bitmap.pch" "bmtoa.pch" "dclock.pch" "ico.pch" "maze.pch"
- "mkfontdir.pch" "oclock.pch" "twm.pch" "x11perf.pch" "xauth.pch" "xbench.pch" "xcalc.pch"
- "xclock.pch" "xdaliclock.pch" "xdpyinfo.pch" "xeyes.pch" "xfd.pch")
- ))
- (patchonefile)
- ))
- (set n (+ n 1))
- ))
-
- (complete 43)
- (working)
- (set n 0)
- (while (set srcfile (select n
- "aga-1.xsd" "aga-8.xsd" "rtg-1.xsd" "")) (
- (set reldir "xsd")
- (set srcdir (tackon @default-dest reldir))
- (set fpath (tackon srcdir srcfile))
- (if (exists fpath) (
- (if (= (getsize fpath) (select n 87516 179180 120720))
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "aga-1-000.pch" "aga-8-000.pch" "rtg-1-000.pch" )
- ))
- (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
- "aga-1-030.pch" "aga-8-030.pch" "rtg-1-030.pch" )
- ))
- )
- (patchonefile)
- ))
- (set n (+ n 1))
- ))
-
- (complete 46)
- (copyfiles
- (source (tackon source-dir "x11/xle/amiwinmisc.xle"))
- (dest (tackon @default-dest "xle"))
- )
- (complete 47)
- (copyfiles
- (source (tackon source-dir "x11/xle/lbx.xle"))
- (dest (tackon @default-dest "xle"))
- )
- (complete 48)
- (copyfiles
- (source (tackon source-dir "x11/Help"))
- (dest (tackon @default-dest "Help"))
- (all)
- )
- (complete 49)
- (if (not (exists (tackon @default-dest "lib/x11/app-defaults/Editres")))
- (copyfiles
- (source (tackon source-dir "x11/lib/x11/app-defaults/Editres"))
- (dest (tackon @default-dest "lib/x11/app-defaults"))
- )
- )
- (if (not (exists (tackon @default-dest "lib/x11/app-defaults/XClipboard")))
- (copyfiles
- (source (tackon source-dir "x11/lib/x11/app-defaults/XClipboard"))
- (dest (tackon @default-dest "lib/x11/app-defaults"))
- )
- )
- (if (not (exists (tackon @default-dest "lib/x11/app-defaults/Xmag")))
- (copyfiles
- (source (tackon source-dir "x11/lib/x11/app-defaults/Xmag"))
- (dest (tackon @default-dest "lib/x11/app-defaults"))
- )
- )
- )
-
- (procedure install-common-files
- (copyfiles
- (source (tackon source-dir "bin/AWDecrypt"))
- (dest (tackon @default-dest "bin"))
- )
-
- (complete 55)
- (working)
- (if (exists (tackon source-dir "new_common.awea")) (
- (run (cat "\"" (tackon @default-dest "bin/AWDecrypt") "\" \"" (tackon source-dir "new_common.awea") "\" \"" source-dir "\""))
- (if (not (exists (tackon source-dir "new_common.zip")))
- (abort "Unable to decrypt new_common.awea")
- )
- (delete (tackon source-dir "new_common.awea"))
- ))
-
- (complete 60)
- (run (cat "\"" (tackon source-dir "bin/unzip") "\" -o -qq \"" (tackon source-dir "new_common.zip") "\" -d \"" @default-dest "\""))
-
- (complete 70)
- (run (cat "protect \"" (tackon @default-dest "man/#?.man") "\" -hpase"))
- (run (cat "protect \"" (tackon @default-dest "man/#?.man") "\" +rwd"))
- )
-
- (procedure install-000-files
- (working)
- (if (exists (tackon source-dir "new_000.awea")) (
- (run (cat "\"" (tackon @default-dest "bin/AWDecrypt") "\" \"" (tackon source-dir "new_000.awea") "\" \"" source-dir "\""))
- (if (not (exists (tackon source-dir "new_000.zip")))
- (abort "Unable to decrypt new_000.awea")
- )
- (delete (tackon source-dir "new_000.awea"))
- ))
-
- (complete 90)
- (run (cat "\"" (tackon source-dir "bin/unzip") "\" -o -qq \"" (tackon source-dir "new_000.zip") "\" -d \"" @default-dest "\""))
- )
-
- (procedure install-030-files
- (working)
- (if (exists (tackon source-dir "new_030.awea")) (
- (run (cat "\"" (tackon @default-dest "bin/AWDecrypt") "\" \"" (tackon source-dir "new_030.awea") "\" \"" source-dir "\""))
- (if (not (exists (tackon source-dir "new_030.zip")))
- (abort "Unable to decrypt new_030.awea")
- )
- (delete (tackon source-dir "new_030.awea"))
- ))
-
- (complete 90)
- (run (cat "\"" (tackon source-dir "bin/unzip") "\" -o -qq \"" (tackon source-dir "new_030.zip") "\" -d \"" @default-dest "\""))
- )
-
-
- ;;;; Start
-
- (set app-name "AmiWin 2.22reg")
-
- (complete 0)
-
- (run "avail flush")
-
- (set source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon))
- (expandpath @icon))
- )
-
- (select-destination-directory)
-
- (check-amiwin-version)
-
- (complete 5)
-
- (set proc-version
- (select
- (askchoice
- (prompt "Please select for which CPU you want the AmiWin "
- "update to be installed:")
- (help "AmiWin can be installed in a version that can "
- "be run on any cpu (->68000), or in a version that "
- "requires a 68030 or higher and a 68881 or higher."
- )
- (choices "68000"
- "68030/68881")
- (default 0)
- )
- 0 30881
- )
- )
-
- (complete 10)
-
- (delete-old-files)
-
- (complete 20)
-
- (patch-to-214)
-
- (complete 30)
-
- (patch-to-216)
-
- (complete 40)
-
- (patch-to-222)
-
- (complete 50)
-
- (install-common-files)
-
- (complete 80)
-
- (if (= 0 proc-version)
- (install-000-files)
- (install-030-files)
- )
-
- (run "avail flush")
-
- (complete 100)
-
- (exit "Installation of the update to "
- "AmiWin 2.22 reg is finished.")
-